﻿using Ebusiness_UserService.Model;
using Volo.Abp.DependencyInjection;

namespace Ebusiness_UserService.Repositorys
{
    /// <summary>
    /// 基础设施层
    /// </summary>
    [Dependency(ServiceLifetime.Transient)]
    public class MockSmsCodeSender : ISmsCodeSender
    {
        public Task SendCodeAsync(PhoneNumber phoneNumber, string code)
        {
            Console.WriteLine($"向{phoneNumber.Code}-{phoneNumber.Phone}发送验证码:{code}");
            return Task.CompletedTask;
        }
    }
}
